package com.didi.gulimall.common.constant;

/**
 * @author 10626
 */
public class WareConstant {
    public static final Integer LOCKING = 1;
    public static final Integer UNLOCK = 2;

    public static final Integer DEDUCTED_INVENTORY = 1;
    public static final Integer LOCK_INVENTORY = 0;

    public static final String USER_REFUND = "用户退款";
    public static final String USER_CANCELED = "用户取消";
    public enum OrderWorkOrderStatus {
        /**
         *订单工单状态
         */
        CREATED(0, "新建"),
        STOCKING(1, "已分配"),
        SHIPPED(2, "已发货"),
        REFUNDING(3, "退款中"),
        CANCELLED(4, "已取消"),
        COMPLETED(5,"已完成");
        private Integer code;
        private String msg;

        OrderWorkOrderStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PurchaseStatusEnum {
        /**
         *购买状态
         */
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVE(2, "已领取"),
        FINISH(3, "已完成"),
        HASERROR(4, "有异常");
        private int code;
        private String msg;

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }


    public enum PurchaseDetailStatusEnum {
        /**
         *购买详细信息状态
         */
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        BUYING(2, "正在采购"),
        FINISH(3, "已完成"),
        HASERROR(4, "采购失败");
        private int code;
        private String msg;

        PurchaseDetailStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
